package demo.pattern.Factory;

/**
 * @author : GuoFei
 * @date : 2018/12/4 16:00
 */
public class BossSimplyFactory {
    public static void main(String[] args) {
        Car car = new BenzDirver().createCar("benz");
        car.setName("benz");
        car.dirve();
    }
//    public static void main(String[] args) {
//        Car car = Dirver.createCar("bmw");
//        car.setName("bmw");
//        car.dirve();
//    }
}
